package com.mingqijia.gassafety.job.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mingqijia.gassafety.db.entity.Dtu;
import com.mingqijia.gassafety.job.request.LatestLogListRequest;
import com.mingqijia.gassafety.job.response.EquipmentDetailResponse;

import java.util.List;

/**
 * <p>
 * 控制器表 服务类
 * </p>
 *
 * @author wanghai
 * @since 2022-02-21
 */
public interface EquipmentService extends IService<Dtu> {
    /**
     * 根据设备号、设备名称、设备类型、客户名称查询设备列表
     * @param request
     * @return
     */
    List<Dtu> queryEquipmentList(LatestLogListRequest request);

    /**
     * 根据imei查询详情
     * @param imei
     * @return
     */
    EquipmentDetailResponse detail(String imei);

    void updatePosition(String position, String deviceId, String date);

    /**
     * 获取设备厂商名称
     * @param equipmentManufacturerCode
     * @param spId
     * @return
     */
    String getEquipmentManufacturerName(String equipmentManufacturerCode,String spId);
}
